package com.zhaopin.analyzer;


import com.zhaopin.analyzer.api.AnalyzerInter;
import com.zhaopin.analyzer.thread.ObjectPoolFactory;
import com.zhaopin.analyzer.util.ObjectPoolUtils;

import java.util.List;

/**
 * @author Administrator
 * @create 2019-07-09 15:18
 */
public class AnsjSeg {

    public static void main(String[] args) throws Exception {

        ObjectPoolFactory analyzerFactory = ObjectPoolUtils.getAnalyzerFactory();
        AnalyzerInter analyzer = analyzerFactory.borrowObject();
        analyzerFactory.returnObject(analyzer);
        List<String> list = analyzer.getWordList("重庆聚城助业人力资源管理有限公司");
        for (String s : list) {
            System.out.print(s+" ");
        }
//        String str = "    洁面仪配合洁面深层清洁毛孔 清洁鼻孔面膜碎觉使劲挤才能出一点点皱纹 脸颊毛孔修复的看不见啦 草莓鼻历史遗留问题没辙 脸和脖子差不多颜色的皮肤才是健康的 长期使用安全健康的比同龄人显小五到十岁 28岁的妹子看看你们的鱼尾纹" ;
//
//        System.out.println(BaseAnalysis.parse(str));
//        System.out.println(ToAnalysis.parse(str));
//        System.out.println(DicAnalysis.parse(str));
//        System.out.println(IndexAnalysis.parse(str));
//        System.out.println(NlpAnalysis.parse(str));

    }
}
